﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<grupo2DEWStudio7i.Dominio.Instrumento>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Instrumentos</h2>
    <p style="color:Blue"><%: TempData["mensaje"] %></p>
    <table>
        <tr>
            <th></th>
            <th>CodInstrumento</th>
            <th>TipoInstru</th>
            <th>ModeloInstru</th>
            <th>MarcaInstru</th>
            <th>AñoFabricacion</th>
            <th>Caracteristicas</th>
            <th>CostoxHora</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.CodInstrumento })%> |
                <%: Html.ActionLink("Detalle", "Details", new { cod = item.CodInstrumento })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.CodInstrumento })%>
            </td>
            <td>
                <%: item.CodInstrumento %>
            </td>
            <td>
                <%: item.TipoInstru %>
            </td>
            <td>
                <%: item.ModeloInstru %>
            </td>
            <td>
                <%: item.MarcaInstru %>
            </td>
            <td>
                <%: item.AñoFabricacion %>
            </td>
            <td>
                <%: item.Caracteristicas %>
            </td>
            <td>
                <%: String.Format("{0:F}", item.CostoxHora) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

